/** COPYRIGHT(C) 2008. Loc Phan. All Rights Reserved.
A class that store info of a person
@author Loc Phan
@version 1.01 2008-11-26
*/
package edu.sjsu.cs.phan.hw6;

public class Person
{
   /**Constructs a person
    * 
    * @param aName Name
    * @param birthyear Year of Birth
    */
   public Person(String aName,int birthyear)
   {
      Name = aName;
      YearOfBirth = birthyear;
   }
   /**Returns person's name
    * 
    * @return Name
    */
   public String getName()
   {
      return Name;
   }
   /**Returns year of birth
    * 
    * @return Year of Birth
    */
   public int getYearOfBirth()
   {
      return YearOfBirth;
   }
   /**
    * Returns a greeting string
    */
   public String toString()
   {
      return "My name is "+Name+ " and I was born in "+YearOfBirth;
   }
   private String Name;
   private int YearOfBirth;
}
